import request from '@/utils/request'

export const getData = (data) => {
  return request({
    url: 'authority/all',
    method: 'get',
    params: {
      page: data.page,
      pageSize: data.pageSize
    }
  })
}

//修改权限
export const change = (data) => {
  return request({
    url: 'authority',
    method: 'put',
    data
  })
}

//删除用户
export const delAdmin = (id) => {
  return request({
    url: `authority/${id}`,
    method: 'delete'
  })
}
